//
//  SYDetailsXinDeTableViewCell.m
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/4/23.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYDetailsXinDeTableViewCell.h"

@interface SYDetailsXinDeTableViewCell ()
@property (weak, nonatomic) IBOutlet UIButton *lookBtn;//查看
@property (weak, nonatomic) IBOutlet UIButton *updownBtn;//下载
@property (weak, nonatomic) IBOutlet UILabel *timeLab;//显示分钟数



@end


@implementation SYDetailsXinDeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)detailsXinDeTableViewType:(SYDetailsType)type {
    
    if (type == SYDetailsTypeZiYuanXind) {//资源心得
        
    } else if (type == SYDetailsTypeJiLu) { //听课记录
        _lookBtn.hidden = YES;
        _updownBtn.hidden = YES;
        _timeLab.hidden = NO;
        _timeLab.text = @"时长：50分钟";
        
    } else if (type == SYDetailsTypeXinDe) { //听课心得
        
    } else if (type == SYDetailsTypeZhuZiGao) {//逐字稿
        
    } else if (type == SYDetailsTypeGuoKe) { //过客
        [_updownBtn setImage:[UIImage imageNamed:@"zy_player_zanting"] forState:UIControlStateNormal];
        [_lookBtn setImage:[UIImage imageNamed:@"zy_tab_sp"] forState:UIControlStateNormal];
    }
    else {
        
    }
}
@end
